/**
 * Apr 18, 2014 11:05:15 AM
 */
package elitech.vietnam.myfashion.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.SearchView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import elitech.vietnam.myfashion.MainActivity;
import elitech.vietnam.myfashion.R;

/**
 * @author Cong
 *
 */
public class SearchFragment extends Fragment implements View.OnClickListener {

	private MainActivity mActivity;
	
	private SearchView mSearch;
	private ListView mList;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.mActivity = (MainActivity) getActivity();
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		return inflater.inflate(R.layout.search, null, false);
	}
	
	@Override
	public void onViewCreated(View view, Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
		mSearch = (SearchView) view.findViewById(R.id.edtSearch);
		
		mSearch.setOnSearchClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.edtSearch:
			
			break;

		default:
			break;
		}
	}
}
